package dao.v2;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import model.CatVO;
import model.ShowwindowCatVO;
import model.ShowwindowCommentVO;
import model.ShowwindowPraiseVO;
import model.ShowwindowVO;

public interface ShowwindowVOMapper {

	List<ShowwindowVO> getIndexList(ShowwindowVO showwindowVO);

	List<ShowwindowVO> getList(ShowwindowVO showwindowVO);

	int getTotal(ShowwindowVO showwindowVO);

	int getPraiseNumByMember(String member_id);

	int getWindowNumByMember(String member_id);

	List<ShowwindowCatVO> getWidowCatListByMember(String member_id);

	void insertWindowCat(ShowwindowCatVO showwindowCatVO);

	void updateWindowCat(ShowwindowCatVO showwindowCatVO);

	int deleteWindowCat(ShowwindowCatVO showwindowCatVO);

	void deletePraise(ShowwindowCatVO showwindowCatVO);

	void deleteComment(ShowwindowCatVO showwindowCatVO);

	void deleteList(ShowwindowCatVO showwindowCatVO);

	void deleteShowwindow(ShowwindowCatVO showwindowCatVO);

	ShowwindowCatVO getWidowCatById(String cat_id);

	int getGoodnumByWindowCat(String cat_id);

	List<ShowwindowVO> getShowwindowListByWindowCat(ShowwindowVO showwindowVO);

	List<CatVO> getGoodCatListByWindowCat(String cat_id);

	int getShowwindowListByWindowCatTotal(ShowwindowVO showwindowVO);

	ShowwindowVO getWindowById(String window_id);

	int getWindowCatNumByMember(String member_id);

	int getCommentNumByShowwindow(String window_id);

	List<ShowwindowCommentVO> getCommentListByWindow(String window_id);

	List<ShowwindowVO> getRecommandList(String good_id);

	int getRecommandTotal(ShowwindowVO showwindowVO);

	List<ShowwindowVO> getRecommandList(ShowwindowVO showwindowVO);

	List<ShowwindowCatVO> getWindowCatList(ShowwindowCatVO showwindowCatVO);

	void updateShowwindow(ShowwindowVO showwindowVO);

	int deleteShowwindowById(ShowwindowVO showwindowVO);

	void deletePraiseByWindow(ShowwindowVO showwindowVO);

	void deleteCommentByWindow(ShowwindowVO showwindowVO);

	void deleteListByWindow(ShowwindowVO showwindowVO);

	List<ShowwindowCommentVO> getCommentList(ShowwindowVO showwindowVO);

	int checkGoodState(String good_id);

	int checkWindowCat(ShowwindowVO showwindowVO);

	void insertShowwindow(ShowwindowVO showwindowVO);

	ShowwindowVO checkWindowGood(ShowwindowVO showwindowVO);

	void insertComment(ShowwindowCommentVO commentVO);

	ShowwindowPraiseVO checkPraiseByShowwindow(@Param("window_id") String window_id, @Param("member_id") String member_id);

	void insertPraise(@Param("showwindow_id") String showwindow_id, @Param("member_id") String member_id);

	void addPraiseNum(String showwindow_id);

	void removePraise(@Param("id") String id);

	void deletePraiseNum(String showwindow_id);

	ShowwindowCommentVO getCommentById(String comment_id);

	void insertCommentReply(ShowwindowCommentVO commentVO);

	void insertCommentReplyBack(ShowwindowCommentVO commentVO);

	void deleteCommentTop(String comment_id);

	void deleteCommentReply(String comment_id);

	List<ShowwindowPraiseVO> getPraiseListByMember(ShowwindowPraiseVO praiseVO);

	int getPraiseTotalByMember(ShowwindowPraiseVO praiseVO);

	void updateUnreadPraise(ShowwindowPraiseVO praiseVO);

	int getReplyTotalByMember(ShowwindowCommentVO commentVO);

	List<ShowwindowCommentVO> getReplyListByMember(ShowwindowCommentVO commentVO);

	void updateUnreadReply(ShowwindowCommentVO commentVO);

	int selectDzNum(String member_id);

	ShowwindowCatVO getDefaultWindowCat(String member_id);

	void insertDefaultWindowCat(String member_id);

	void updataCatWindowListShareTimes(String cat_id);

	void updataWindowDetailShareTimes(String window_id);

	void deleteCommentTopNoChild(String comment_id);

	int getDzMillisecond(String member_id);

	int getPlMillisecond(String member_id);

	void updatePraiseVODelete(String id);

	ShowwindowCatVO getDzOneVo(String member_id);

	ShowwindowCatVO getPlOneVo(String member_id);

	void updateCommentRead(String comment_id);

	void updateCommentReadAll(String member_id);

	void updatePraiseRead(String praise_id);

}
